package com.wangsd.configurationcenter.prototype

import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.{ResponseBody, RequestMethod, RequestMapping}


/**
 * Created by wangshida on 15/8/3.
 * First Blood
 */
@Controller
@RequestMapping(Array{"/"})
class HelloWorld {

  @RequestMapping(value = Array{"/get"}, method = Array{RequestMethod.GET})
  @ResponseBody
  def get = new Result(true, "done", "Hello World!")
}
